﻿namespace Refract.MVVM
{
    using System;

    public abstract class ViewModel : Component, IViewModel
    {
        #region Events

        public event EventHandler<EventArgs> ViewClosed;

        #endregion Events

        #region Methods

        public void CloseView()
        {
            if(ViewClosed != null)
            {
                ViewClosed(this, null);
            }
        }

        #endregion Methods
    }
}